﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;

namespace IRC.IRepairClouds.WebClient.Controls
{
    public class DummyLabel : Label
    {
        public override string ClientID
        {
            get
            {
                var x = this.ClientIDSeparator + this.ID;
                if (base.ClientID.EndsWith(x))
                    return base.ClientID.Remove(base.ClientID.Length - x.Length);
                return base.ClientID;
            }
        }

        public override string UniqueID
        {
            get
            {
                var x = this.IdSeparator + this.ID;
                if (base.UniqueID.EndsWith(x))
                    return base.UniqueID.Remove(base.UniqueID.Length - x.Length);
                return base.UniqueID;
            }
        }
    }
}
